<template>
    <div class="top">
        <rightwo v-if="istrain"></rightwo>
        <rightone v-else :bind="bind"></rightone>
    </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import rightone from '../components/right-top1/index.vue';
import rightwo from '../components/right-top2/index.vue';
const istrain = ref(false);
const props = defineProps(['istrainc', 'bind']);
if (props.istrainc) {
    istrain.value = props.istrainc;
}
</script>

<style scoped lang="less">
.top {
    width: 100%;
    margin-bottom: 10px;
}
</style>
